<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <meta name="generator" content="VuePress 2.0.0-beta.25">
    <link rel="icon" href="/eurynome-cloud/images/logo.png"><meta name="keywords" content="Eurynome Cloud,微服务,Spring Boot,Spirng Cloud,Spring Cloud Alibaba,Spring Security,OAuth2,Nacos,Skywalking"><title>环境部署 | Eurynome Cloud</title><meta name="description" content="Eurynome Cloud, 在线文档, 微服务, 微服务架构, Spring Boot，Spring Cloud，Spring Cloud Alibaba, Spring Security, OAuth 2, Skywalking, Nacos">
    <link rel="preload" href="/eurynome-cloud/assets/js/runtime~app.70302f05.js" as="script"><link rel="preload" href="/eurynome-cloud/assets/css/styles.03bfbc71.css" as="style"><link rel="preload" href="/eurynome-cloud/assets/js/567.94e28fdc.js" as="script"><link rel="preload" href="/eurynome-cloud/assets/js/app.a36212f7.js" as="script">
    <link rel="stylesheet" href="/eurynome-cloud/assets/css/styles.03bfbc71.css">
  </head>
  <body>
    <div id="app"><!--[--><div class="theme-container"><header class="navbar"><div class="toggle-sidebar-button" title="toggle sidebar" aria-expanded="false" role="button" tabindex="0"><div class="icon" aria-hidden="true"><span></span><span></span><span></span></div></div><span><a href="/eurynome-cloud/" class=""><img class="logo" src="/eurynome-cloud/images/logo.png" alt="Eurynome Cloud"><span class="site-name can-hide">Eurynome Cloud</span></a></span><div class="navbar-links-wrapper" style=""><!--[--><!--]--><nav class="navbar-links can-hide"><!--[--><div class="navbar-links-item"><a href="/eurynome-cloud/documents/" class="nav-link router-link-active" aria-label="指南"><!--[--><!--]--> 指南 <!--[--><!--]--></a></div><div class="navbar-links-item"><a href="/eurynome-cloud/documents-athena/" class="nav-link" aria-label="单体版"><!--[--><!--]--> 单体版 <!--[--><!--]--></a></div><div class="navbar-links-item"><a href="/eurynome-cloud/microservices/" class="nav-link" aria-label="微服务技术栈"><!--[--><!--]--> 微服务技术栈 <!--[--><!--]--></a></div><div class="navbar-links-item"><div class="dropdown-wrapper"><button class="dropdown-title" type="button" aria-label="了解更多"><span class="title">了解更多</span><span class="arrow down"></span></button><button class="mobile-dropdown-title" type="button" aria-label="了解更多"><span class="title">了解更多</span><span class="right arrow"></span></button><!--[--><ul style="display:none;" class="nav-dropdown"><!--[--><li class="dropdown-item"><!--[--><h4 class="dropdown-subtitle"><span>延伸</span></h4><ul class="dropdown-subitem-wrapper"><!--[--><li class="dropdown-subitem"><a href="/eurynome-cloud/basic-knowledge/" class="nav-link" aria-label="了解基础知识"><!--[--><!--]--> 了解基础知识 <!--[--><!--]--></a></li><!--]--></ul><!--]--></li><li class="dropdown-item"><!--[--><h4 class="dropdown-subtitle"><span>帮助</span></h4><ul class="dropdown-subitem-wrapper"><!--[--><li class="dropdown-subitem"><a class="nav-link external" href="https://gitee.com/herodotus/eurynome-cloud/issues" rel="noopener noreferrer" target="_blank" aria-label="我要提问"><!--[--><!--]--> 我要提问 <span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariahidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span><!--[--><!--]--></a></li><li class="dropdown-subitem"><a href="/eurynome-cloud/others/README.md" class="nav-link" aria-label="常见问题"><!--[--><!--]--> 常见问题 <!--[--><!--]--></a></li><li class="dropdown-subitem"><a href="/eurynome-cloud/others/更新日志.md" class="nav-link" aria-label="更新日志"><!--[--><!--]--> 更新日志 <!--[--><!--]--></a></li><li class="dropdown-subitem"><a class="nav-link external" href="https://jq.qq.com/?_wv=1027&amp;k=bIerJVy8" rel="noopener noreferrer" target="_blank" aria-label="加入QQ群"><!--[--><!--]--> 加入QQ群 <span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariahidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span><!--[--><!--]--></a></li><!--]--></ul><!--]--></li><!--]--></ul><!--]--></div></div><div class="navbar-links-item"><div class="dropdown-wrapper"><button class="dropdown-title" type="button" aria-label="Gitee"><span class="title">Gitee</span><span class="arrow down"></span></button><button class="mobile-dropdown-title" type="button" aria-label="Gitee"><span class="title">Gitee</span><span class="right arrow"></span></button><!--[--><ul style="display:none;" class="nav-dropdown"><!--[--><li class="dropdown-item"><a class="nav-link external" href="https://gitee.com/herodotus/eurynome-cloud" rel="noopener noreferrer" target="_blank" aria-label="后端源码"><!--[--><!--]--> 后端源码 <span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariahidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span><!--[--><!--]--></a></li><li class="dropdown-item"><a class="nav-link external" href="https://gitee.com/herodotus/eurynome-cloud-ui" rel="noopener noreferrer" target="_blank" aria-label="前端源码"><!--[--><!--]--> 前端源码 <span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariahidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span><!--[--><!--]--></a></li><li class="dropdown-item"><a class="nav-link external" href="https://gitee.com/herodotus/herodotus-cloud-athena" rel="noopener noreferrer" target="_blank" aria-label="单体版源码"><!--[--><!--]--> 单体版源码 <span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariahidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span><!--[--><!--]--></a></li><!--]--></ul><!--]--></div></div><div class="navbar-links-item"><div class="dropdown-wrapper"><button class="dropdown-title" type="button" aria-label="Github"><span class="title">Github</span><span class="arrow down"></span></button><button class="mobile-dropdown-title" type="button" aria-label="Github"><span class="title">Github</span><span class="right arrow"></span></button><!--[--><ul style="display:none;" class="nav-dropdown"><!--[--><li class="dropdown-item"><a class="nav-link external" href="https://github.com/herodotus-cloud/eurynome-cloud" rel="noopener noreferrer" target="_blank" aria-label="后端源码"><!--[--><!--]--> 后端源码 <span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariahidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span><!--[--><!--]--></a></li><li class="dropdown-item"><a class="nav-link external" href="https://github.com/herodotus-cloud/eurynome-cloud-ui" rel="noopener noreferrer" target="_blank" aria-label="前端源码"><!--[--><!--]--> 前端源码 <span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariahidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span><!--[--><!--]--></a></li><li class="dropdown-item"><a class="nav-link external" href="https://github.com/herodotus-cloud/herodotus-cloud-athena" rel="noopener noreferrer" target="_blank" aria-label="单体版源码"><!--[--><!--]--> 单体版源码 <span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariahidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span><!--[--><!--]--></a></li><!--]--></ul><!--]--></div></div><!--]--></nav><!--[--><!--]--><button class="toggle-dark-button" title="toggle dark mode"><svg style="" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6z" fill="currentColor"></path><path d="M5.394 6.813l1.414-1.415l3.506 3.506L8.9 10.318z" fill="currentColor"></path><path d="M2 15.005h5v2H2z" fill="currentColor"></path><path d="M5.394 25.197L8.9 21.691l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 25.005h2v5h-2z" fill="currentColor"></path><path d="M21.687 23.106l1.414-1.415l3.506 3.506l-1.414 1.414z" fill="currentColor"></path><path d="M25 15.005h5v2h-5z" fill="currentColor"></path><path d="M21.687 8.904l3.506-3.506l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 2.005h2v5h-2z" fill="currentColor"></path></svg><svg style="display:none;" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z" fill="currentColor"></path></svg></button><form class="search-box" role="search"><input type="search" placeholder="搜索" autocomplete="off" spellcheck="false" value><!----></form></div></header><div class="sidebar-mask"></div><aside class="sidebar"><nav class="navbar-links"><!--[--><div class="navbar-links-item"><a href="/eurynome-cloud/documents/" class="nav-link router-link-active" aria-label="指南"><!--[--><!--]--> 指南 <!--[--><!--]--></a></div><div class="navbar-links-item"><a href="/eurynome-cloud/documents-athena/" class="nav-link" aria-label="单体版"><!--[--><!--]--> 单体版 <!--[--><!--]--></a></div><div class="navbar-links-item"><a href="/eurynome-cloud/microservices/" class="nav-link" aria-label="微服务技术栈"><!--[--><!--]--> 微服务技术栈 <!--[--><!--]--></a></div><div class="navbar-links-item"><div class="dropdown-wrapper"><button class="dropdown-title" type="button" aria-label="了解更多"><span class="title">了解更多</span><span class="arrow down"></span></button><button class="mobile-dropdown-title" type="button" aria-label="了解更多"><span class="title">了解更多</span><span class="right arrow"></span></button><!--[--><ul style="display:none;" class="nav-dropdown"><!--[--><li class="dropdown-item"><!--[--><h4 class="dropdown-subtitle"><span>延伸</span></h4><ul class="dropdown-subitem-wrapper"><!--[--><li class="dropdown-subitem"><a href="/eurynome-cloud/basic-knowledge/" class="nav-link" aria-label="了解基础知识"><!--[--><!--]--> 了解基础知识 <!--[--><!--]--></a></li><!--]--></ul><!--]--></li><li class="dropdown-item"><!--[--><h4 class="dropdown-subtitle"><span>帮助</span></h4><ul class="dropdown-subitem-wrapper"><!--[--><li class="dropdown-subitem"><a class="nav-link external" href="https://gitee.com/herodotus/eurynome-cloud/issues" rel="noopener noreferrer" target="_blank" aria-label="我要提问"><!--[--><!--]--> 我要提问 <span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariahidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span><!--[--><!--]--></a></li><li class="dropdown-subitem"><a href="/eurynome-cloud/others/README.md" class="nav-link" aria-label="常见问题"><!--[--><!--]--> 常见问题 <!--[--><!--]--></a></li><li class="dropdown-subitem"><a href="/eurynome-cloud/others/更新日志.md" class="nav-link" aria-label="更新日志"><!--[--><!--]--> 更新日志 <!--[--><!--]--></a></li><li class="dropdown-subitem"><a class="nav-link external" href="https://jq.qq.com/?_wv=1027&amp;k=bIerJVy8" rel="noopener noreferrer" target="_blank" aria-label="加入QQ群"><!--[--><!--]--> 加入QQ群 <span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariahidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span><!--[--><!--]--></a></li><!--]--></ul><!--]--></li><!--]--></ul><!--]--></div></div><div class="navbar-links-item"><div class="dropdown-wrapper"><button class="dropdown-title" type="button" aria-label="Gitee"><span class="title">Gitee</span><span class="arrow down"></span></button><button class="mobile-dropdown-title" type="button" aria-label="Gitee"><span class="title">Gitee</span><span class="right arrow"></span></button><!--[--><ul style="display:none;" class="nav-dropdown"><!--[--><li class="dropdown-item"><a class="nav-link external" href="https://gitee.com/herodotus/eurynome-cloud" rel="noopener noreferrer" target="_blank" aria-label="后端源码"><!--[--><!--]--> 后端源码 <span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariahidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span><!--[--><!--]--></a></li><li class="dropdown-item"><a class="nav-link external" href="https://gitee.com/herodotus/eurynome-cloud-ui" rel="noopener noreferrer" target="_blank" aria-label="前端源码"><!--[--><!--]--> 前端源码 <span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariahidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span><!--[--><!--]--></a></li><li class="dropdown-item"><a class="nav-link external" href="https://gitee.com/herodotus/herodotus-cloud-athena" rel="noopener noreferrer" target="_blank" aria-label="单体版源码"><!--[--><!--]--> 单体版源码 <span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariahidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span><!--[--><!--]--></a></li><!--]--></ul><!--]--></div></div><div class="navbar-links-item"><div class="dropdown-wrapper"><button class="dropdown-title" type="button" aria-label="Github"><span class="title">Github</span><span class="arrow down"></span></button><button class="mobile-dropdown-title" type="button" aria-label="Github"><span class="title">Github</span><span class="right arrow"></span></button><!--[--><ul style="display:none;" class="nav-dropdown"><!--[--><li class="dropdown-item"><a class="nav-link external" href="https://github.com/herodotus-cloud/eurynome-cloud" rel="noopener noreferrer" target="_blank" aria-label="后端源码"><!--[--><!--]--> 后端源码 <span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariahidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span><!--[--><!--]--></a></li><li class="dropdown-item"><a class="nav-link external" href="https://github.com/herodotus-cloud/eurynome-cloud-ui" rel="noopener noreferrer" target="_blank" aria-label="前端源码"><!--[--><!--]--> 前端源码 <span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariahidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span><!--[--><!--]--></a></li><li class="dropdown-item"><a class="nav-link external" href="https://github.com/herodotus-cloud/herodotus-cloud-athena" rel="noopener noreferrer" target="_blank" aria-label="单体版源码"><!--[--><!--]--> 单体版源码 <span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariahidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span><!--[--><!--]--></a></li><!--]--></ul><!--]--></div></div><!--]--></nav><!--[--><!--]--><ul class="sidebar-links"><!--[--><!--[--><p class="sidebar-heading sidebar-item active">指南</p><ul class=""><li><!--[--><a href="/eurynome-cloud/documents/" class="nav-link router-link-active sidebar-item" aria-label="介绍"><!--[--><!--]--> 介绍 <!--[--><!--]--></a><!----><!--]--></li><li><!--[--><a href="/eurynome-cloud/documents/%E5%BF%AB%E9%80%9F%E4%BA%86%E8%A7%A3.html" class="nav-link sidebar-item" aria-label="快速了解"><!--[--><!--]--> 快速了解 <!--[--><!--]--></a><!----><!--]--></li><li><!--[--><a href="/eurynome-cloud/documents/%E9%A1%B9%E7%9B%AE%E4%BB%8B%E7%BB%8D.html" class="nav-link sidebar-item" aria-label="项目介绍"><!--[--><!--]--> 项目介绍 <!--[--><!--]--></a><!----><!--]--></li><li><!--[--><a aria-current="page" href="/eurynome-cloud/documents/%E7%8E%AF%E5%A2%83%E9%83%A8%E7%BD%B2.html" class="router-link-active router-link-exact-active nav-link router-link-active sidebar-item active" aria-label="环境部署"><!--[--><!--]--> 环境部署 <!--[--><!--]--></a><ul class="sidebar-sub-items"><li><!--[--><a aria-current="page" href="/eurynome-cloud/documents/%E7%8E%AF%E5%A2%83%E9%83%A8%E7%BD%B2.html#准备工作" class="router-link-active router-link-exact-active nav-link sidebar-item" aria-label="准备工作"><!--[--><!--]--> 准备工作 <!--[--><!--]--></a><ul class="sidebar-sub-items"><li><!--[--><a aria-current="page" href="/eurynome-cloud/documents/%E7%8E%AF%E5%A2%83%E9%83%A8%E7%BD%B2.html#后端运行所需的基础设施" class="router-link-active router-link-exact-active nav-link sidebar-item" aria-label="后端运行所需的基础设施"><!--[--><!--]--> 后端运行所需的基础设施 <!--[--><!--]--></a><!----><!--]--></li><li><!--[--><a aria-current="page" href="/eurynome-cloud/documents/%E7%8E%AF%E5%A2%83%E9%83%A8%E7%BD%B2.html#前端运行所需的基础设施" class="router-link-active router-link-exact-active nav-link sidebar-item" aria-label="前端运行所需的基础设施"><!--[--><!--]--> 前端运行所需的基础设施 <!--[--><!--]--></a><!----><!--]--></li></ul><!--]--></li><li><!--[--><a aria-current="page" href="/eurynome-cloud/documents/%E7%8E%AF%E5%A2%83%E9%83%A8%E7%BD%B2.html#运行系统" class="router-link-active router-link-exact-active nav-link sidebar-item" aria-label="运行系统"><!--[--><!--]--> 运行系统 <!--[--><!--]--></a><ul class="sidebar-sub-items"><li><!--[--><a aria-current="page" href="/eurynome-cloud/documents/%E7%8E%AF%E5%A2%83%E9%83%A8%E7%BD%B2.html#后端运行" class="router-link-active router-link-exact-active nav-link sidebar-item" aria-label="后端运行"><!--[--><!--]--> 后端运行 <!--[--><!--]--></a><!----><!--]--></li><li><!--[--><a aria-current="page" href="/eurynome-cloud/documents/%E7%8E%AF%E5%A2%83%E9%83%A8%E7%BD%B2.html#前端运行" class="router-link-active router-link-exact-active nav-link sidebar-item" aria-label="前端运行"><!--[--><!--]--> 前端运行 <!--[--><!--]--></a><!----><!--]--></li></ul><!--]--></li></ul><!--]--></li></ul><!--]--><!--[--><p class="sidebar-heading sidebar-item">后端手册</p><ul class=""><li><!--[--><a href="/eurynome-cloud/documents/%E6%95%B0%E6%8D%AE%E5%88%9D%E5%A7%8B%E5%8C%96.html" class="nav-link sidebar-item" aria-label="数据初始化"><!--[--><!--]--> 数据初始化 <!--[--><!--]--></a><!----><!--]--></li><li><!--[--><a href="/eurynome-cloud/documents/%E6%9B%B4%E6%8D%A2%E6%95%B0%E6%8D%AE%E5%BA%93.html" class="nav-link sidebar-item" aria-label="更换数据库"><!--[--><!--]--> 更换数据库 <!--[--><!--]--></a><!----><!--]--></li><li><!--[--><a href="/eurynome-cloud/documents/%E5%A4%9A%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AE.html" class="nav-link sidebar-item" aria-label="多环境配置"><!--[--><!--]--> 多环境配置 <!--[--><!--]--></a><!----><!--]--></li><li><!--[--><a href="/eurynome-cloud/documents/%E6%96%B0%E5%BB%BA%E5%AD%90%E6%A8%A1%E5%9D%97.html" class="nav-link sidebar-item" aria-label="新建子模块"><!--[--><!--]--> 新建子模块 <!--[--><!--]--></a><!----><!--]--></li></ul><!--]--><!--[--><p class="sidebar-heading sidebar-item">前端手册</p><ul class=""><li><!--[--><a href="/eurynome-cloud/documents/%E5%89%8D%E7%AB%AF%E6%89%8B%E5%86%8C.html" class="nav-link sidebar-item" aria-label="前端手册"><!--[--><!--]--> 前端手册 <!--[--><!--]--></a><!----><!--]--></li></ul><!--]--><!--]--></ul><!--[--><!--]--></aside><!--[--><main class="page"><!--[--><!--]--><div class="theme-default-content"><!--[--><h1 id="环境部署" tabindex="-1"><a class="header-anchor" href="#环境部署" aria-hidden="true">#</a> 环境部署</h1><h2 id="准备工作" tabindex="-1"><a class="header-anchor" href="#准备工作" aria-hidden="true">#</a> 准备工作</h2><h3 id="后端运行所需的基础设施" tabindex="-1"><a class="header-anchor" href="#后端运行所需的基础设施" aria-hidden="true">#</a> 后端运行所需的基础设施</h3><table><thead><tr><th>设施</th><th>当前版本</th><th>说明</th></tr></thead><tbody><tr><td>Nacos</td><td>2.0.3</td><td>分布式版本使用的Nacos作为配置中心和服务发现中心，所以需要安装Nacos。不管本地运行还是Docker、K8S环境都需要。</td></tr><tr><td>Redis</td><td>3.2.100+</td><td>运行的必须组件，分布式版本、单体版本；本地运行还是还是Docker、K8S环境都需要</td></tr><tr><td>Kafka</td><td>2.6.0+</td><td>运行的必须组件，分布式版本、单体版本；本地运行还是还是Docker、K8S环境都需要。（虽然本系统使用的是spring cloud bus同时兼容RabbitMQ和Kafka，由于使用Debezium来支持工作流、ElasticSearch数据同步，所以如果没有特殊的使用需求还是建议使用Kafka）</td></tr><tr><td>PostgreSQL 数据库</td><td>建议使用最新版，其它版本也可以运行</td><td>个人多年项目经验，感觉PostgreSQL更好用和顺手，所以默认数据为PostgreSQL。基础代码都是使用spring data jpa（Mybatis Plus也支持），所以其它数据库也支持，修改一下配置就行</td></tr><tr><td>MySQL 数据库</td><td>5.6.5+</td><td>Nacos 运行需要依赖数据库，长久运行需要依赖于MySQL（目前Nacos不支持其它数据库，虽说Nacos RoadMap有多数据库支持，不知道什么时候开发完成）。本地运行为了省事，也可以用Nacos的内置数据库，这样减少本地运行资源占用</td></tr><tr><td>Sentinel Dashboard</td><td>1.8.0</td><td>本地调试运行可以不需要</td></tr><tr><td>Skywalking</td><td>8.7.0</td><td>本地运行可以不需要</td></tr><tr><td>ELK</td><td>7.0.0 +</td><td>日志中心中心所需基础环境，本地运行可以不需要，需要在配置关闭日志收集</td></tr></tbody></table><ul><li><strong>(1) 后端本地运行所需标准最小环境</strong></li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>Nacos &gt;= 1.1.0 (推荐使用最新版Nacos)
Redis &gt;= 3.0.0
Kafka &gt;= 2.6.0 (目前Kafka运行还需要依赖Zookeeper)
PostgreSQL &gt;= 10
</code></pre><div class="line-numbers"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br></div></div><ul><li><strong>(2) 开发环境</strong></li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>IDEA 或 Eclipse （推荐IDEA）
JDK &gt;= 1.8 (推荐1.8版本)
Maven &gt;= 1.3
Git 使用最新版
</code></pre><div class="line-numbers"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br></div></div><h3 id="前端运行所需的基础设施" tabindex="-1"><a class="header-anchor" href="#前端运行所需的基础设施" aria-hidden="true">#</a> 前端运行所需的基础设施</h3><table><thead><tr><th>设施</th><th>当前版本</th><th>说明</th></tr></thead><tbody><tr><td>Nodejs</td><td>14.17.0 +</td><td>运行前端Vue工程必须依赖，如果不需要运行前端可以忽略</td></tr><tr><td>Yarn</td><td>1.22.10</td><td>前端包管理工具，如果习惯使用Yarn，用Npm或其它工具也都可以</td></tr></tbody></table><ul><li><strong>(1) 前端端本地运行所需标准最小环境</strong></li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>Nodejs&gt;= 10
Yarn&gt;= 1.22.10 （Yarn2 目前会有很多问题，劣势太多不建议使用）
</code></pre><div class="line-numbers"><span class="line-number">1</span><br><span class="line-number">2</span><br></div></div><ul><li><strong>(2) 开发环境</strong></li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>Visual Studio Code （Vscode）或其它 （推荐Vscode）
</code></pre><div class="line-numbers"><span class="line-number">1</span><br></div></div><ul><li><strong>(3) 环境配置</strong></li></ul><p><a href="https://blog.csdn.net/Pointer_v/article/details/105432529?spm=1001.2014.3001.5501" target="_blank" rel="noopener noreferrer">参见个人博客<span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariahidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span></a></p><h2 id="运行系统" tabindex="-1"><a class="header-anchor" href="#运行系统" aria-hidden="true">#</a> 运行系统</h2><h3 id="后端运行" tabindex="-1"><a class="header-anchor" href="#后端运行" aria-hidden="true">#</a> 后端运行</h3><h4 id="_1-、创建工程" tabindex="-1"><a class="header-anchor" href="#_1-、创建工程" aria-hidden="true">#</a> [1]、创建工程</h4><p><strong>方式一：</strong></p><ul><li><p>前往<a href="https://gitee.com/herodotus/eurynome-cloud" target="_blank" rel="noopener noreferrer">Gitee下载页面<span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariahidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span></a>下载解压到工作目录</p></li><li><p>打开IDE导入工程</p></li><li><p><code>Eclipse</code>，菜单 <code>File -&gt; Import</code>，然后选择 <code>Maven -&gt; Existing Maven Projects</code>，点击 <code>Next</code> 按钮，选择工作目录，然后点击 <code>Finish</code> 按钮，即可成功导入。</p></li><li><p><code>IDEA</code>，菜单 <code>File -&gt; Open</code>，然后选择已解压工程所在的目录，点击 <code>OK</code> 即可。</p></li></ul><blockquote><p>IDE会自动加载相关的依赖包，具体要依据网络以及个人本地Maven缓存情况而定。</p></blockquote><p><strong>方式二：</strong></p><p><code>IDEA</code> 菜单 <code>File -&gt; New -&gt; Project From Version Control...</code>, 在弹出框中输入本工程Git地址：<a href="https://gitee.com/herodotus/eurynome-cloud.git" target="_blank" rel="noopener noreferrer">https://gitee.com/herodotus/eurynome-cloud.git<span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariahidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span></a>，然后设置放置目录，点击 <strong>OK</strong> 即可</p><h4 id="_2-、创建数据库" tabindex="-1"><a class="header-anchor" href="#_2-、创建数据库" aria-hidden="true">#</a> [2]、创建数据库</h4><p>进入<code>PostgreSQL</code> 的<code>SQL Shell(psql)</code> (在Windows的菜单中可以找到)，使用超级管理员账号和密码登录进入数据库，执行以下脚本：</p><div class="custom-container tip"><p class="custom-container-title">提示</p><p><code>Linux</code> 环境下在命令行中登录 <code>PostgreSQL</code></p></div><div class="language-postgresql ext-postgresql line-numbers-mode"><pre class="language-postgresql"><code>CREATE USER herodotus WITH PASSWORD &#39;herodotus&#39;;
CREATE DATABASE herodotus OWNER herodotus;
GRANT ALL PRIVILEGES ON DATABASE herodotus TO herodotus;
</code></pre><div class="line-numbers"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div><div class="custom-container tip"><p class="custom-container-title">说明(1)</p><p>这里不管是用户名、用户密码还是数据库名均使用herodotus是为了方便，请根据自己实际情况修改。</p></div><div class="custom-container tip"><p class="custom-container-title">说明(2)</p><p>这里没有进行分库（即：所有的服务使用同一个数据库），请根据自己的实际情况修改。</p></div><div class="custom-container tip"><p class="custom-container-title">说明(3)</p><p>以上是以 <code>PostgreSQL</code> 作为默认数据库，如果要使用其它数据请自行探索。</p></div><div class="custom-container warning"><p class="custom-container-title">注意</p><p>要分步、一条一条地执行，不要全部复制，一把全部执行。一定要注意每个语句结尾要以“;”结束。</p></div><h4 id="_3-、修改配置" tabindex="-1"><a class="header-anchor" href="#_3-、修改配置" aria-hidden="true">#</a> [3]、修改配置</h4><ul><li><strong>（1）需导入Nacos配置信息修改</strong></li></ul><p>在工程 <code>${project_home}/platform/eurynome-cloud-management/resources/configs</code> 目录下，存放着所有需要导入 <code>Nacos</code> 的所有配置文件。</p><div class="custom-container tip"><p class="custom-container-title">提示</p><p>本项目所有<code>Nacos</code>配置，均是采用<code>yaml</code>格式。如需使用其它格式请自行修改</p></div><p>请根据自身环境的信息，进行对应的修改。为了方便使用，所有的所有的配置采用**“共享式、统一化多环境配置模式”**，所以大多数配置在对应 <code>多环境</code> 的 <code>eurynome-cloud-environment.yaml</code> 配置中就可以完成修改。</p><div class="custom-container warning"><p class="custom-container-title">注意</p><p>第一次使用系统，<code>eurynome-cloud-environment.yaml</code> 中 <code>herodotus.swagger.database.ddl-auto</code> 配置，要设置成 <code>update</code> 或 <code>create</code>。推荐设置成 <code>update</code>，这样在开发过程中，会自动更新数据库结构。生产环境中，也可以设置成 <code>update</code>，当然最好设置成 <code>none</code>。</p></div><ul><li><strong>（2）导入Nacos配置</strong></li></ul><p>配置修改完成之后，需要将<code>${project_home}/platform/eurynome-cloud-management/resources/configs</code> 目录下导入到 <code>Nacos</code> 中。</p><div class="custom-container danger"><p class="custom-container-title">注意</p><p><code>${project_home}/platform/eurynome-cloud-management/resources/configs</code> 目录下，还有一级目录。这级目录的名称，是对应 <code>Nacos</code> 中的 <code>Group</code>。所以在向 <code>Nacos</code> 导入配置时，一定要注意 <code>Group</code> 的创建和匹配。切勿全部导入到 <code>DEFAULT</code> 组下，这样会导致无法正常运行。</p></div><div class="custom-container tip"><p class="custom-container-title">提示</p><p><strong>Eurynome Cloud</strong> 是开源版本，未提供<code>Nacos</code>配置的自动导入功能。</p><p>为了方便使用，最新的版本中，在<code>${project_home}/platform/eurynome-cloud-management/resources/imports</code> 目录下提供可以直接导入的配置包。可以方便的完成导入配置、创建<code>Group</code>等操作。</p></div><ul><li><strong>（3）修改pom配置</strong></li></ul><p>找到工程根目录下的 <code>pom.xml</code>, 由于支持多环境，所以在该文件中，找到你对应环境的配置，修改该环境下的对应的配置信息。</p><div class="language-xml ext-xml line-numbers-mode"><pre class="language-xml"><code><span class="token comment">&lt;!-- 开发 --&gt;</span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>profile</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>id</span><span class="token punctuation">&gt;</span></span>development<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>id</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>activation</span><span class="token punctuation">&gt;</span></span>
        <span class="token comment">&lt;!--默认激活配置--&gt;</span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>activeByDefault</span><span class="token punctuation">&gt;</span></span>true<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>activeByDefault</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>activation</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>properties</span><span class="token punctuation">&gt;</span></span>
        <span class="token comment">&lt;!--当前环境--&gt;</span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>profile.name</span><span class="token punctuation">&gt;</span></span>development<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>profile.name</span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>database.type</span><span class="token punctuation">&gt;</span></span>postgresql<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>database.type</span><span class="token punctuation">&gt;</span></span>
        <span class="token comment">&lt;!--代码构建控制--&gt;</span>
        <span class="token comment">&lt;!--跳过构建源代码包--&gt;</span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>skip.build.source.package</span><span class="token punctuation">&gt;</span></span>false<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>skip.build.source.package</span><span class="token punctuation">&gt;</span></span>
        <span class="token comment">&lt;!--不copy代码包到docker构建目录--&gt;</span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>skip.copy.docker.resource</span><span class="token punctuation">&gt;</span></span>false<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>skip.copy.docker.resource</span><span class="token punctuation">&gt;</span></span>
        <span class="token comment">&lt;!--不执行git commit 构建--&gt;</span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>skip.build.git.commit.info</span><span class="token punctuation">&gt;</span></span>false<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>skip.build.git.commit.info</span><span class="token punctuation">&gt;</span></span>
        <span class="token comment">&lt;!--Nacos配置中心地址--&gt;</span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>config.server-addr</span><span class="token punctuation">&gt;</span></span>127.0.0.1:8848<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>config.server-addr</span><span class="token punctuation">&gt;</span></span>
        <span class="token comment">&lt;!--Nacos配置中心命名空间,用于支持多环境.这里必须使用ID，不能使用名称,默认为空--&gt;</span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>config.namespace</span><span class="token punctuation">&gt;</span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>config.namespace</span><span class="token punctuation">&gt;</span></span>
        <span class="token comment">&lt;!--Nacos服务发现地址--&gt;</span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>discovery.server-addr</span><span class="token punctuation">&gt;</span></span>127.0.0.1:8848<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>discovery.server-addr</span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>sentinel.server-addr</span><span class="token punctuation">&gt;</span></span>127.0.0.1:8858<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>sentinel.server-addr</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>properties</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>profile</span><span class="token punctuation">&gt;</span></span>
</code></pre><div class="line-numbers"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br><span class="line-number">26</span><br><span class="line-number">27</span><br></div></div><ul><li><strong>（4）多环境配置</strong></li></ul><p>参考<a href="/eurynome-cloud/documents/%E5%A4%9A%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AE.html" class="">多环境配置</a>说明</p><h4 id="_4-、编译代码" tabindex="-1"><a class="header-anchor" href="#_4-、编译代码" aria-hidden="true">#</a> [4]、编译代码</h4><p><strong>方式一：</strong></p><p>在IDE工程中，利用IDE提供的界面操作进行编译。以<code>IDEA</code>为例，在右侧<code>Maven Panel</code>中，选择<code>eurynome-cloud(root)</code>节点，点击Lifecycle节点下的<code>install</code> 或者 <code>package</code> 进行编译。参考下图：</p><p><img src="/eurynome-cloud/images/idea/lifecycle.png" alt="输入图片说明"></p><p><strong>方式二：</strong></p><p>用命令行进入到工程代码所在目录，通过执行下面命令进行编译</p><div class="language-bash ext-sh line-numbers-mode"><pre class="language-bash"><code>mvn <span class="token function">install</span>

或 

mvn package
</code></pre><div class="line-numbers"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div></div><div class="custom-container tip"><p class="custom-container-title">提示</p><p>推荐使用<code>install</code>命令，进行编译。使用该命令编译完成之后，会在<code>Maven</code>本地缓存中，生成响应的包，这样<code>eurynome-cloud-athena</code>功能就可以直接使用。</p></div><div class="custom-container tip"><p class="custom-container-title">提示</p><p>在第一次编译的时候，因为在本地缓存缺少相关的包，所以在执行 <code>mvn clean</code> 操作时会提示错误。因此，在第一次编译时只使用 <code>mvn package</code> 或 <code>mvn install</code>。第一次编译完成之后，就可以使用 <code>mvn clean package</code> 或 <code>mvn clean install</code> 命令进行编译。IDE界面操作也是同理。</p></div><h4 id="_5-、导入数据库脚本" tabindex="-1"><a class="header-anchor" href="#_5-、导入数据库脚本" aria-hidden="true">#</a> [5]、导入数据库脚本</h4><p><strong>（1）运行服务</strong></p><p>为了减少数据库脚本，与实际应用不匹配的问题，系统大部分数据库表以及初始默认数据，使用自动创建方式导入，只有 <code>OAuth2</code> 额外需要的表，才需要手动创建。</p><p>所以在进行脚本的导入之前，请先运行<code>${project_home}/services/eurynome-cloud-upms-ability</code> 服务。该服务正常运行之后，会将大部分基础表创建好，同时会扫描该服务中的<code>Rest API</code>，转换为权限存储至<code>sys_authority</code>表中。</p><p>再运行<code>${project_home}/platform/eurynome-cloud-uaa</code>服务，该服务正常运行之后，会扫描该服务中的<code>Rest API</code>，转换为权限存储至<code>sys_authority</code>表中。</p><p><strong>（2）导入数据库脚本</strong></p><ol><li><p>在工程<code>${project_home}/configurations/scripts</code> 目录下，找到 <code>OAuth2</code> Schema脚本（<code>oauth2-schema-postgresql.sql</code>）导入到系统中。</p></li><li><p>在工程<code>${project_home}/services/eurynome-cloud-upms-ability/resources/sqls</code>目录下, 找到系统默认数据脚本（<code>upms-data-postgresql.sql</code>）导入到系统中。</p></li></ol><div class="custom-container warning"><p class="custom-container-title">注意</p><p><code>upms-data-postgresql.sql</code> 中， <code>sys_authority</code> 和 <code>sys_role_authority</code> 两部分数据，以为了以防服务<code>Rest API</code>扫描功能失效的情况下，权限数据无法正常生成的补救措施。</p><p>具体操作：</p><ul><li>如果在上一步，两个服务正常启动之后，<code>sys_authority</code> 权限数据可以正常生成，那么在导入 <code>upms-data-postgresql.sql</code> 时，请先删除 <code>sys_authority</code> 和 <code>sys_role_authority</code> 两部分数据再导入。然后，再导入该目录下的 <code>data-process.sql</code> 脚本即可。</li><li>如果在上一步，两个服务正常启动之后，<code>sys_authority</code> 权限数据未正常生成：请完整执行 <code>upms-data-postgresql.sql</code>，无须再执行<code>data-process.sql</code>。</li></ul></div><h4 id="_6-、打开运行基础模块-启动没有先后顺序" tabindex="-1"><a class="header-anchor" href="#_6-、打开运行基础模块-启动没有先后顺序" aria-hidden="true">#</a> [6]、打开运行基础模块（启动没有先后顺序）</h4><ul><li>GatewayApplication （网关模块 必须）</li><li>UaaApplication （认证模块 必须）</li><li>UpmsApplication （用户模块 必须）</li><li>ManagementApplication （监控中心 可选）</li><li>BpmnApplication （工作流 可选）</li></ul><h4 id="_7-、运行elk" tabindex="-1"><a class="header-anchor" href="#_7-、运行elk" aria-hidden="true">#</a> [7]、运行ELK</h4><p>完整运行本套微服务架构，需要搭建 <code>ELK</code> 套件，作为日志中心以及 <code>Skywalking</code> 链路追踪的数据存储介质。</p><p>目前已有基础功能尚未涉及到搜索，只有日志中心和链路追踪功能涉及到 <code>Elasticsearch</code>。如果本地开发不要相关功能，就不需要安装<code>ELK</code>套件。</p><div class="custom-container tip"><p class="custom-container-title">提示</p><p>如果不想使用<code>ELK</code>，那么需要关闭微服务的日志收集功能。修改你所使用 <code>多环境</code> 对应的 <code>eurynome-cloud-environment.yaml</code> 配置中的 <code>herodotus.environment.logstash-server-addr</code> 属性的值，将其值设置成 <code>false</code> ，即可关闭日志收集功能</p></div><h4 id="_8-、运行skywalking" tabindex="-1"><a class="header-anchor" href="#_8-、运行skywalking" aria-hidden="true">#</a> [8]、运行Skywalking</h4><p>完整运行本套微服务架构，需要搭建 <code>ELK</code> 套件，作为日志中心以及<code>Skywalking</code>链路追踪的数据存储介质。正式环境运行建议使用 <code>Docker</code> 或 <code>K8S</code> 的方式运行 <code>Skywalking</code>，并以 <code>Docker</code> 的形式运行服务。</p><p>如果仅是在本地运行调试服务与 <code>Skywalking</code> 的联动，可以在IDE中增加参数后，再运行服务即可。</p><p>以IDEA为例，点开 <code>Edit Configurations...</code>，在对应服务的 <code>VM Options</code> 输入框中添加如下参数即可调试 <code>Skywalking</code></p><div class="language-bash ext-sh line-numbers-mode"><pre class="language-bash"><code>-javaagent:D:/Workspaces/Java/herodotus-cloud/configurations/docker/context/agent/skywalking-agent-es7-8.6.0.jar<span class="token operator">=</span>agent.service_name<span class="token operator">=</span>herodotus-cloud-upms-ability,collector.backend_service<span class="token operator">=</span><span class="token number">192.168</span>.101.10:11800
</code></pre><div class="line-numbers"><span class="line-number">1</span><br></div></div><h4 id="_9-、以docker方式部署" tabindex="-1"><a class="header-anchor" href="#_9-、以docker方式部署" aria-hidden="true">#</a> [9]、以Docker方式部署</h4><p>参见：<a href="/eurynome-cloud/microservices/%E5%AE%B9%E5%99%A8%E5%8C%96%E6%8A%80%E6%9C%AF.html" class="">容器化部署</a></p><p>具体操作如下图所示：</p><p><img src="/eurynome-cloud/images/idea/local-skywalking.jpeg" alt="输入图片说明"></p><h3 id="前端运行" tabindex="-1"><a class="header-anchor" href="#前端运行" aria-hidden="true">#</a> 前端运行</h3><h4 id="前端运行命令" tabindex="-1"><a class="header-anchor" href="#前端运行命令" aria-hidden="true">#</a> 前端运行命令</h4><div class="language-bash ext-sh line-numbers-mode"><pre class="language-bash"><code>// 进入目录
<span class="token builtin class-name">cd</span> eurynome-cloud-ui

// 安装依赖
<span class="token function">yarn</span> <span class="token function">install</span>
或
<span class="token function">npm</span> <span class="token function">install</span>

<span class="token comment"># 本地开发 启动项目</span>
<span class="token function">yarn</span> dev
或
<span class="token function">npm</span> run dev
</code></pre><div class="line-numbers"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br></div></div><h4 id="运行验证" tabindex="-1"><a class="header-anchor" href="#运行验证" aria-hidden="true">#</a> 运行验证</h4><p>打开浏览器，输入：<a href="http://localhost:3000" target="_blank" rel="noopener noreferrer">http://localhost:3000<span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariahidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span></a> 默认账户/密码 system/123456） 若能正确展示登录页面，并能成功登录，菜单及页面展示正常，则表明环境搭建成功</p><!--]--></div><footer class="page-meta"><!----><div class="meta-item last-updated"><span class="meta-item-label">更新时间: </span><span class="meta-item-info">2021/9/8 上午12:03:33</span></div><div class="meta-item contributors"><span class="meta-item-label">贡献者: </span><span class="meta-item-info"><!--[--><!--[--><span class="contributor" title="email: pointer_v@qq.com">herodotus</span><!----><!--]--><!--]--></span></div></footer><nav class="page-nav"><p class="inner"><span class="prev"> ← <a href="/eurynome-cloud/documents/%E9%A1%B9%E7%9B%AE%E4%BB%8B%E7%BB%8D.html" class="nav-link" aria-label="项目介绍"><!--[--><!--]--> 项目介绍 <!--[--><!--]--></a></span><!----></p></nav><!--[--><!--]--></main><!--]--></div><!----><!--]--></div>
    <script src="/eurynome-cloud/assets/js/runtime~app.70302f05.js" defer></script><script src="/eurynome-cloud/assets/js/567.94e28fdc.js" defer></script><script src="/eurynome-cloud/assets/js/app.a36212f7.js" defer></script>
  </body>
</html>
